import { defineStore } from "pinia";

export const menuColl = defineStore('menu', () => {
    let collapse = ref(false)
    function changeCollapse() {
        if (collapse.value) {
            collapse.value = false
        } else {
            collapse.value = true
        }
<<<<<<< HEAD
=======
        // console.log('collapse', toValue(collapse))
>>>>>>> 3b77961bf61e22b9989bdb04788109b2ba8113d9
    }
    return {
        changeCollapse,
        collapse
    }
}, { persist: true })